.class Lcom/waiqin365/lightapp/product/ab;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/product/view/e;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/waiqin365/base/db/offlinedata/s;)V
    .locals 6

    const-wide/high16 v2, 0x3ff0000000000000L    # 1.0

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->a()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->g(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/db/jxccache/g;->h()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->k(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->g(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/db/jxccache/g;->h()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/w;->e(Ljava/lang/String;)Lcom/waiqin365/base/db/offlinedata/s;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->g(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v1

    const/4 v4, 0x0

    invoke-virtual {v1, v4}, Lcom/waiqin365/base/db/jxccache/g;->b(Ljava/lang/Double;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->g(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v1

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->a()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/waiqin365/base/db/jxccache/g;->e(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->g(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v1

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->c()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/waiqin365/base/db/jxccache/g;->f(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->l(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->c()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->m(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->c()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->g(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v1

    iget-object v4, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v4}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->b(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Lcom/waiqin365/lightapp/product/d/f;

    move-result-object v4

    invoke-static {v1, v4}, Lcom/waiqin365/lightapp/product/e/b;->a(Lcom/waiqin365/base/db/jxccache/g;Lcom/waiqin365/lightapp/product/d/f;)D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v1

    const-wide/16 v4, 0x0

    invoke-static {v1, v4, v5}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v4

    if-nez v0, :cond_1

    move-wide v0, v2

    :goto_0
    div-double v0, v4, v0

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->e()Ljava/lang/Double;

    move-result-object v4

    invoke-static {v4, v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v2

    mul-double/2addr v0, v2

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v2}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->g(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v2

    invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/jxccache/g;->a(Ljava/lang/Double;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v2}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->i(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Landroid/widget/EditText;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/lightapp/product/e/b;->d()I

    move-result v1

    const/4 v3, 0x0

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/product/e/b;->a(Ljava/lang/String;IZ)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void

    :cond_1
    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/s;->e()Ljava/lang/Double;

    move-result-object v0

    invoke-static {v0, v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v0

    goto :goto_0
.end method

.method public a(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->g(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v0

    invoke-static {p1}, Lcom/fiberhome/gaea/client/d/k;->e(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->b(Ljava/lang/Double;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/ab;->a:Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;->h(Lcom/waiqin365/lightapp/product/ProductDetailActivityNew;)V

    return-void
.end method
